home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-11 | 1.8 KB | 34 lines | [TEXT/GEOL] |
- Item 6284431 5-May-90 06:18PDT
-
- From: N0917 E I DuPont, Simon Edkins,ASC,NAT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: AddResource Problem
-
- I have encountered a very frustrating problem with my current (and first)
- MacApp project. I am dealing with data files produced by another program,
- files that consist of both a data fork and a resource fork. The resource fork
- can contain between 2 and 4 resources, depending on what kind of pre-processing
- the file has received from yet another program. I want my program to read in
- the data fork, display it, and after some user processing, add another resource
- to the file. I do nothing to the data directly.
- The problem comes when adding the new resource. I put AddResource in my
- DoWrite method, following the lead of the DemoText example program. I
- subsequently found that the resource had been added all right, but that in
- doing so, the rest of the resource fork was gone, as well as the data fork! My
- 70K file was now about 1K.
- What is MacApp doing behind my back to the resource map? What could
- possibly cause the file system to overwrite the data fork with a ResManager
- call? By the way, I have tried calling UseResFile with the fRsrcRefNum field
- and that only rewards me with "can't save due to a disk error" message. I
- would hate to think that I have to read in all the existing resources only to
- write them out again, along with the data fork. I know this isn't necessary
- with procedural programming.
- Help! Does anyone have any idea what is going on here? Up to now, I have
- been quite enamored of MacApp, but this problem has brought my progress to a
- screeching halt, on a project that my employer is awaiting with decreasing
- patience.
- Please respond to my Link address, N0917. Thanks.
-
-